package com.roadjava.javaweb.student.service;

import com.roadjava.javaweb.student.beans.entity.StudentDO;
import com.roadjava.javaweb.student.beans.req.StudentRequest;
import com.roadjava.javaweb.student.beans.res.ResultDTO;
import com.roadjava.javaweb.student.beans.res.TableResult;
import com.roadjava.javaweb.student.beans.vo.StudentVO;

import java.util.List;

public interface StudentService {
    boolean addStudent(StudentDO studentDO);

    TableResult<StudentVO> queryStudentByPage(StudentRequest studentRequest);

    StudentVO getStudentById(long studentId);

    boolean updateStudent(StudentDO studentDO);

    boolean deleteStudentById(long studentId);

    ResultDTO<List<StudentVO>> loadAllStudents();
}
